import Layout from "@/layout";

const employeePermission = [
  {
    path: "/home",
    component: Layout,
    children: [
      {
        path: "index",
        name: "Home",
        component: () => import("@/views/employee/Home.vue"),
        meta: { title: "Dashboard", icon: "dashboard" }
      }
    ]
  },
  {
    path: "/info",
    component: Layout,
    children: [
      {
        path: "index",
        name: "Info",
        component: () => import("@/views/employee/MyInfo.vue"),
        meta: { title: "基本信息", icon: "el-icon-time" }
      }
    ]
  },
  {
    path: "/performance",
    component: Layout,
    children: [
      {
        path: "index",
        name: "Performance",
        component: () => import("@/views/employee/Performance.vue"),
        meta: { title: "我的绩效", icon: "el-icon-collection-tag" }
      }
    ]
  },
  {
    path: "/attendance",
    component: Layout,
    children: [
      {
        path: "index",
        name: "Attendance",
        component: () => import("@/views/employee/Attendance.vue"),
        meta: {title: "我的考勤",icon: "el-icon-time"}
      }
    ]
  }
];

export default employeePermission